package cn.com.lyj6851.modules.edu.service;

import cn.com.lyj6851.common.service.BaseService;
import cn.com.lyj6851.modules.edu.domain.EduSubject;
import cn.com.lyj6851.modules.edu.service.dto.EduSubjectCriteria;
import cn.com.lyj6851.modules.edu.service.dto.EduSubjectDto;
import org.springframework.data.domain.Pageable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface EduSubjectService extends BaseService<EduSubject> {
    /**
     * 查询数据分页
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String,Object>
     */
    Map<String,Object> queryAll(EduSubjectCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<YxMaterialGroupDto>
     */
    List<EduSubject> queryAll(EduSubjectCriteria criteria);

    /**
     * 导出数据
     * @param all 待导出的数据
     * @param response /
     * @throws IOException /
     */
    void download(List<EduSubjectDto> all, HttpServletResponse response) throws IOException;

}
